home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / ProgramF / CRYSTAL / CRW9 / DEV / INCLUDE / Uxdpost.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-05-03  |  2.5 KB  |  110 lines

  1.  
  2. //<HEADER_BEGIN>
  3. //================================================
  4. //File name: Uxdpost.h
  5. //Date : January, 15 2002  12:15
  6. //Copyright (c) 2002 - Crystal Decisions Corp.
  7. //================================================
  8. //<HEADER_END>
  9.  
  10. #if !defined (UXDPOST_H)
  11. #define UXDPOST_H
  12.  
  13. #if defined (__cplusplus)
  14. extern "C"
  15. {
  16. #endif
  17.  
  18. // Set 1-byte structure alignment
  19. #if defined (__BORLANDC__)               // Borland C/C++
  20.   #pragma option -a-
  21. #elif defined (_MSC_VER)                 // Microsoft Visual C++
  22.   #if _MSC_VER >= 900                    // MSVC 2.x and later
  23.     #pragma pack (push)
  24.   #endif
  25.   #pragma pack (1)
  26. #endif
  27.  
  28. /********************************************/
  29. #define UXDExchFolderType     0
  30.  
  31. #define UXDPostDocMessage       1011   // for folder messages
  32.  
  33. typedef struct tag_UXDPostFolderOptionsA
  34. {
  35.     WORD  structSize;
  36.     LPSTR pszProfile;
  37.     LPSTR pszPassword;
  38.     WORD  wDestType;
  39.     LPSTR pszFolderPath;
  40.     WORD  nEncodedBytes;
  41.  
  42. #if defined (__cplusplus)
  43. public:
  44.     tag_UXDPostFolderOptionsA()
  45.     {
  46.         pszProfile    = NULL;
  47.         pszPassword   = NULL;
  48.         pszFolderPath = NULL;
  49.         wDestType = UXDPostDocMessage;
  50.         nEncodedBytes = 0;
  51.     };
  52. #endif
  53.  
  54. } UXDPostFolderOptionsA, FAR * LPUXDPostFolderOptionsA;
  55.  
  56. #define UXDPostFolderOptionsSizeA      (sizeof (UXDPostFolderOptionsA))
  57.  
  58. typedef struct tag_UXDPostFolderOptionsW
  59. {
  60.     WORD  structSize;
  61.     wchar_t* pszProfile;
  62.     wchar_t* pszPassword;
  63.     WORD  wDestType;
  64.     wchar_t* pszFolderPath;
  65.     WORD  nEncodedBytes;
  66.  
  67. #if defined (__cplusplus)
  68. public:
  69.     tag_UXDPostFolderOptionsW()
  70.     {
  71.         pszProfile    = NULL;
  72.         pszPassword   = NULL;
  73.         pszFolderPath = NULL;
  74.         wDestType = UXDPostDocMessage;
  75.         nEncodedBytes = 0;
  76.     };
  77. #endif
  78.  
  79. } UXDPostFolderOptionsW, FAR * LPUXDPostFolderOptionsW;
  80.  
  81. #define UXDPostFolderOptionsSizeW      (sizeof (UXDPostFolderOptionsW))
  82.  
  83. #ifdef UNICODE
  84. typedef UXDPostFolderOptionsW UXDPostFolderOptions;
  85. typedef LPUXDPostFolderOptionsW LPUXDPostFolderOptions;
  86. #else
  87. typedef UXDPostFolderOptionsA UXDPostFolderOptions;
  88. typedef LPUXDPostFolderOptionsA LPUXDPostFolderOptions;
  89. #endif  //UNICODE 
  90.  
  91. #define UXDPostFolderOptionsSize      (sizeof (UXDPostFolderOptions))
  92.  
  93. // Reset structure alignment
  94. #if defined (__BORLANDC__)
  95.   #pragma option -a.
  96. #elif defined (_MSC_VER)
  97.   #if _MSC_VER >= 900
  98.     #pragma pack (pop)
  99.   #else
  100.     #pragma pack ()
  101.   #endif
  102. #endif
  103.  
  104. #if defined (__cplusplus)
  105. }
  106. #endif
  107. #endif 
  108.  
  109.  
  110.